package com.github.service;

import com.github.bean.User;

import java.util.List;

public interface UserServer {
    boolean login(String account, String password);
    void logout(String account);
    void addUser(String account);
    boolean addUser(String account, String password);
    boolean delUser(String account);
    boolean updatePassword(String account, String password);
    boolean reserveAccount(String account);
    boolean unReserveAccount(String account);
    User getUser(String username);
    String getPassword(String account);
    List<User> getReserveUser();
    boolean isReserveAccount(String account);
    List<User> getAllUser();
    List<User> getAllNonReservedUser();
    void delAllAccount();
    void delAllNonReservedAccount();
}
